﻿@model ModalDownload.Models.AdminLoginModel
@{
    Layout = null;
}

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>后台管理系统</title>
	<script type="text/javascript">
	    var radnom = 1;
	    function check() {
	        if (document.getElementById("username").value == "") {
	            alert("用户名为必填项目");
	            return false;
	        }
	        if (document.getElementById("password").value == "") {
	            alert("密码为必填项目");
	            return false;
	        }
	    }
	</script>
	
	<style type="text/css">
		body{background:url('../Images/admin/login_bj.jpg');font-size:13px;}
		.login-content{position:absolute;top:39%;left:50%;width:521px;height:260px;margin:-130px 0 0 -260px;background:url('../Images/admin/login_con_bj.jpg') no-repeat;}
		.login-content h2{padding:15px 0;height:43px;font:bold 16px/43px 微软雅黑;color:#fff;text-indent:36px;}
		.login-content .row{padding:8px 12px 8px 80px;;height:26px;}
		.login-content .row span{float:left;color:#fff;}
		.login-content .row span .rd-img{cursor:pointer;}
		.login-content .row1{padding:12px 12px 0px 300px;height:26px;}
		.login-content .row1 .btn-login{width:66px;height:26px;background:url('../Images/admin/btn_login.jpg');border:0;}
		.login-content .txt{border:0;height:18px;line-height:18px;width:180px;}
		.login-content .txt-rd{border:0;height:18px;line-height:18px;width:60px;}
		.login-content .message{padding:6px;text-align:center;color:#ff0000;}
		.copyright{position:absolute;background:#1f99da;text-align:center;width:100%;top:100%;left:0;margin-top:-26px;z-index:3;filter:alpha(opacity=80);-moz-opacity:0.8;-khtml-opacity: 0.8;opacity: 0.8;height:26px;line-height:26px;color:#fff}
		.copyright a:link,.copyright a:visited{color:#fff}
	</style>
    @Styles.Render("~/Content/admin/base.css")
</head>

<body>
    @using (Html.BeginForm("Login", "Admin", FormMethod.Post, new { name = "contentForm" }))
    {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
        <div class="login-content">
			<h2>后台用户登录</h2>
			<div class="row">
				<span>@Html.LabelFor(m => m.UserName)</span>
				<span>@Html.TextBoxFor(m => m.UserName)@Html.ValidationMessageFor(m => m.UserName)</span>
			</div>
			<div class="row">
				<span>@Html.LabelFor(m => m.Password)</span>
				<span>@Html.PasswordFor(m => m.Password)@Html.ValidationMessageFor(m => m.Password)</span>
			</div>
			<div class="row1">
				<input name="method" type="hidden" value="login"/>
				<input class="btn-login" name="Submit1" type="submit" value="" onclick="javascript: return check();" />
			</div>
			<div class="message"><s:property value="errorMessage"/></div>
		</div>
        <div class="copyright">[@Html.ActionLink("返回首页","Index","Home")]</div>
    }
</body>

</html>

